import request from '@/utils/request'

// 上传接口
export function uploadData(data) {
  return request({
    url: '/ncpcs/upload/interfaceInfo/uploadData',
    method: 'post',
    data: data
  })
}

// 查询interfaceManage列表
export function listInterfaceInfo(query) {
  return request({
    url: '/ncpcs/upload/interfaceInfo/list',
    method: 'get',
    params: query
  })
}

// 查询interfaceManage详细
export function getInterfaceInfo(id) {
  return request({
    url: '/ncpcs/upload/interfaceInfo/' + id,
    method: 'get'
  })
}

// 新增interfaceManage
export function addInterfaceInfo(data) {
  return request({
    url: '/ncpcs/upload/interfaceInfo',
    method: 'post',
    data: data
  })
}

// 修改interfaceManage
export function updateInterfaceInfo(data) {
  return request({
    url: '/ncpcs/upload/interfaceInfo',
    method: 'put',
    data: data
  })
}

// 删除interfaceManage
export function delInterfaceInfo(id) {
  return request({
    url: '/ncpcs/upload/interfaceInfo/' + id,
    method: 'delete'
  })
}

// 导出interfaceManage
export function exportInterfaceInfo(query) {
  return request({
    url: '/ncpcs/upload/interfaceInfo/export',
    method: 'get',
    params: query
  })
}
